package net.xdclass.xdclass.controller;

import net.xdclass.xdclass.service.VideoBannerService;
import net.xdclass.xdclass.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/v1/pus/video_banner")
public class VideoBannerController {

    @Autowired
    VideoBannerService videoBannerService;
    @GetMapping("/list")
    public JsonData listVideoBanner(){

        return JsonData.buildSuccess(videoBannerService.listVideoBanner());
    }
}
